package alo.p3.eg;

public class LinkedListNode {//链表节点

    public LinkedListNode previous;//前一节点
    public LinkedListNode next;//后一节点
    public Object object;//节点中存的值


    public long timestamp;


    public LinkedListNode(Object object, LinkedListNode next, LinkedListNode previous)
    {
        this.object = object;
        this.next = next;
        this.previous = previous;
    }


    public void remove() {//删除自己
        previous.next = next;
        next.previous = previous;
    }


    public String toString() {
        return object.toString();
    }
}
